package com.jiesen.base.modules.company.model;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jiesen.base.baseDao.BaseModel;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;


/**
 * <p>
 * 公海认领记录表
 * </p>
 *
 * @author bao
 */
@TableName("js_public_users_record")
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class JsPublicUsersRecord extends BaseModel {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer id;         //我的客户认领表
    private Integer publicUsersId;  //"公海用户"
    private Integer userId;  //"认领销售"
    private String tag;  //"标签"
    private String content;  //"内容"
    private Integer state;  //"状态:-2、退回公海、-1、无意向、 0待沟通 、1有意向、2、成交"// "
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date uts;  //"最新认领时间"
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date cts;  //"创建时间"

    @TableField(exist = false)
    private List<Integer> ids;
    @TableField(exist = false)
    private Integer count;
}
